class Log
  @@log_slots = []

  def self.initialize()
    @@log_slots = Array.new( 10, "" )
  end

  def self.write( slot_index, string )
    @@log_slots[ slot_index ] = @@log_slots[ slot_index ] + string + "\n"
  end

  def self.save( slot_index )
    log_file = "T:/Files/log/im-#{RunningParameters.im},ds-#{RunningParameters.data_set},\
ps-#{RunningParameters.pool_size},es-#{RunningParameters.num_of_ensemble_classifier_members},\
prsseed-#{RunningParameters.prs_initial_seed},logslot-#{slot_index}.csv"
    f = File.open( log_file, "w" )
    f.puts( @@log_slots[ slot_index ] )
    f.close()
  end

  def self.show( slot_index )
    puts( "<slot_index: #{slot_index}>" )
    puts( @@log_slots[ slot_index ] )
  end

end
